package com.itheima.stock.common.async;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/**
 * @ClassName AsyncSenderEmail
 * @Author Carithly
 * @Description 发送邮件
 * @Date 2022/10/28 9:15
 * @Version 1.0.0
 * @Entity com.itheima.stock.common.async
 */
@Component
public class AsyncSenderEmail {

    @Async
    public void sendEmail(){
        System.out.println("//////////////" + Thread.currentThread().getName());
        System.out.println("发邮件");
    }
}
